import request from '@/utils/request'

// 查询周易列表
export function listYi(query) {
  return request({
    url: '/life/yi/list',
    method: 'get',
    params: query
  })
}

// 查询周易详细
export function getYi(lGuaId) {
  return request({
    url: '/life/yi/' + lGuaId,
    method: 'get'
  })
}

// 新增周易
export function addYi(data) {
  return request({
    url: '/life/yi',
    method: 'post',
    data: data
  })
}

// 修改周易
export function updateYi(data) {
  return request({
    url: '/life/yi',
    method: 'put',
    data: data
  })
}

// 删除周易
export function delYi(lGuaId) {
  return request({
    url: '/life/yi/' + lGuaId,
    method: 'delete'
  })
}
